package com.brightness.security.oauth2.server.service.impl;

import com.brightness.security.oauth2.server.domain.TbPermission;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.brightness.security.oauth2.server.mapper.TbPermissionMapper;
import com.brightness.security.oauth2.server.service.TbPermissionService;

import java.util.List;

/**
 * @author: mailtohgh@163.com
 * @date: 2019/12/30
 * @time: 3:53 下午
 * @descript:
 */
@Service
public class TbPermissionServiceImpl implements TbPermissionService{

    @Resource
    private TbPermissionMapper tbPermissionMapper;

    @Override
    public List<TbPermission> selectByUserId(Long userId) {
        return tbPermissionMapper.selectByUserId(userId);
    }
}
